<?php
require_once('Extension/Controller/Action.php');

/**
 * Important ! we must load Zend_XmlRpc_Client before we use it ! 
 * Even if we already registerAutoload
 *
 */
require_once('Zend/XmlRpc/Client.php');

class Admin_RpcController extends Extension_Controller_Action 
{
    public function indexAction() 
    {
        $publish = true;

        $structData = array(
            'title' => 'title 007 test',
            'dateCreated' => new Zend_XmlRpc_Value_DateTime(time(), Zend_XmlRpc_Value::XMLRPC_TYPE_DATETIME),
            'description' => 'This is the content of the body .',
        );

        $client = Kbs::initXmlRpcClient();
        $proxy = $client->getProxy();
        $response = $proxy->test->callFunc((int)1, (bool)true, (array)$structData);

        echo $response;
    }

}